﻿@page "/"
@inject IJSRuntime JS
<Button>按钮</Button>

<Button OnClick="@(e=>JS.InvokeVoidAsync("alert",new[]{"点击了按钮"}))">弹框</Button>

<Button Block>按钮</Button>